/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved.
 *
 */

import { CodeType } from '../../enum/code-type-enum.js';

import { CodeModel } from './code-model.js';

/**
 * 源码集合模型
 *
 * @since 2022/2/23
 */
export class CodeModelImpl implements CodeModel {
  private readonly _codeType: CodeType;
  private readonly _srcPath: string;

  constructor(srcPath: string, codeType: CodeType) {
    this._codeType = codeType;
    this._srcPath = srcPath;
  }

  getSrcPath(): string {
    return this._srcPath;
  }

  getCodeType(): CodeType {
    return this._codeType;
  }
}
